@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700;900&display=swap');

:root {
 --banner-dark: rgba(0, 0, 0, 0.697);
 --accent: #c08d41;
 --text-light: #2e1022;
 --text-shadow: none;
}

.banner {
 position: relative;
 height: 100vh; /* Full screen */
 height: 100dvh; /* Soporte moderno para móviles */
 min-height: 400px;
 display: flex; /* Use flexbox for content centering */
 align-items: center;
 justify-content: center;
 overflow: hidden; /* Hide overflowing particles */
}

.banner::before {
 content: "";
 position: absolute;
 inset: 0;
 background: var(--banner-dark);
 z-index: 0;
 animation: fadeInOverlay 1.5s ease-out forwards;
}

/* Carousel Styles */
.banner-carousel {
 position: absolute;
 inset: 0;
 z-index: -1;
}

.banner-slide {
 position: absolute;
 inset: 0;
 background-size: cover;
 background-position: center;
 opacity: 0;
 transition: opacity 1s ease-in-out;
}

.banner-slide.active {
 opacity: 1;
}

.banner-content {
 position: relative;
 z-index: 1;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 text-align: center;
 padding: 24px;
 width: 100%;
 max-width: 1200px; /* Contenedor seguro */
 color: var(--text-light);
 animation: slideInUp 1.5s ease-out forwards;
}

.banner-logo {
 width: 180px; /* Logo más grande para los efectos */
 height: 180px;
 display: flex;
 align-items: center;
 justify-content: center;
 border-radius: 50%;
 position: relative;
 background: transparent; /* El fondo ahora va en la imagen para permitir capas */
 box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
 transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
 z-index: 2;
}

/* Anillo de energía rotatorio (Gradiente) */
.banner-logo::before {
 content: '';
 position: absolute;
 inset: -5px; /* Borde externo */
 border-radius: 50%;
 background: conic-gradient(from 0deg, transparent, var(--accent), transparent, #431832, transparent, var(--accent));
 z-index: -1;
 animation: rotateBorder 6s linear infinite;
}

/* Onda de pulso expansiva */
.banner-logo::after {
 content: '';
 position: absolute;
 inset: -15px;
 border-radius: 50%;
 border: 1px solid rgba(192, 141, 65, 0.4);
 z-index: -2;
 animation: pulseRing 3s ease-out infinite;
}

.banner-logo:hover {
 transform: scale(1.1);
 box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.banner-logo:hover::before {
 animation-duration: 2s; /* Gira más rápido al pasar el mouse */
 filter: blur(2px); /* Efecto neón */
}

.banner-logo img.banner-logo-img {
 display: block;
 width: 100%;
 height: 100%;
 padding: 25px; /* Espacio interno */
 box-sizing: border-box;
 object-fit: contain;
 border-radius: 50%;
 background: rgba(255, 255, 255, 0.95); /* Fondo blanco limpio */
 transition: transform 0.5s ease;
 filter: drop-shadow(0 5px 10px rgba(0,0,0,0.15));
 position: relative;
 z-index: 1;
}

.banner-logo:hover img.banner-logo-img {
 transform: rotate(-10deg) scale(1.05);
}

.banner-title {
 margin-top: 25px; /* More space */
 font-family: 'Montserrat', sans-serif; /* Cambio a fuente moderna */
 font-weight: 800;
 font-size: clamp(32px, 6vw, 80px); /* Tipografía fluida y adaptable */
 line-height: 1.1;
 letter-spacing: clamp(1px, 0.5vw, 4px);
 color: var(--text-light);
 text-transform: uppercase;
 text-shadow: none;
 animation: textGlow 3s ease-in-out infinite alternate, breatheLine 4s ease-in-out infinite;
 display: inline; /* Permite que el subrayado fluya con el texto */
 background-image: linear-gradient(90deg, var(--accent), #e0a95e, var(--accent));
 background-size: 100% 3px;
 background-repeat: no-repeat;
 background-position: bottom center;
 padding-bottom: 8px; /* Espacio entre texto y línea */
}

/* Subrayado estético e inmersivo */
.banner-title::after {
 display: none;
}

/* responsive adjustments */
@media (max-width: 768px) {
 .banner {
 height: 100dvh; /* Pantalla completa real en móvil */
 min-height: 500px;
 background-attachment: scroll; /* Evita saltos en scroll táctil */
 }
 .banner-logo {
 width: 140px;
 height: 140px;
 }
 .banner-title {
 margin-top: 20px;
 }
 .banner-button {
    font-size: 16px;
    padding: 14px 30px;
 }
 /* Ocultar formas complejas en móvil para mejorar rendimiento y claridad */
 .shape-1, .shape-3, .shape-5, .shape-6, .shape-7, .shape-9, .shape-10, .shape-11, .shape-12, .shape-13, .shape-14, .shape-15, .shape-16, .shape-17, .shape-18, .shape-19, .shape-20 {
    display: none;
 }
 /* Mantener algunas formas simples pero más sutiles */
 .shape-2, .shape-4, .shape-8 {
    transform: scale(0.5);
    opacity: 0.1;
 }
}

@media (max-width: 480px) {
 .banner-logo {
 width: 110px;
 height: 110px;
 }
 .banner-title {
 font-size: 28px; /* Ajuste fino para pantallas muy pequeñas */
 }
}

/* Helper: if user wants to use local image, set --banner-image: url("./banner.jpg"); */

/* New Animations */
@keyframes fadeInOverlay {
 from {
 opacity: 0;
 }
 to {
 opacity: 1;
 }
}

@keyframes slideInUp {
 from {
 transform: translateY(50px);
 opacity: 0;
 }
 to {
 transform: translateY(0);
 opacity: 1;
 }
}

@keyframes textGlow {
 from {
 text-shadow: 0 0 5px rgba(192, 141, 65, 0.2);
 }
 to {
 text-shadow: 0 0 15px rgba(192, 141, 65, 0.5);
 }
}

@keyframes breatheLine {
 0%, 100% { opacity: 0.6; }
 50% { opacity: 1; }
}

@keyframes rotateBorder {
 0% { transform: rotate(0deg); }
 100% { transform: rotate(360deg); }
}

@keyframes pulseRing {
 0% { transform: scale(0.9); opacity: 0.6; border-width: 2px; }
 100% { transform: scale(1.4); opacity: 0; border-width: 0px; }
}

/* Particle effect (optional, can be added with JS or more complex CSS) */
/* For a purely CSS approach, we can use multiple pseudo-elements or background-image with gradients */
.banner::after {
 content: '';
 position: absolute;
 inset: 0;
 background: radial-gradient(circle at 20% 80%, rgba(67, 24, 50, 0.08) 0%, transparent 25%),
 radial-gradient(circle at 80% 20%, rgba(192, 141, 65, 0.08) 0%, transparent 25%);
 opacity: 0.8;
 animation: particleFloat 15s ease-in-out infinite alternate;
 z-index: 0; /* Below content, above overlay */
}

@keyframes particleFloat {
 0% {
 transform: translate(0, 0) scale(1);
 }
 50% {
 transform: translate(10px, -10px) scale(1.05);
 }
 100% {
 transform: translate(0, 0) scale(1);
 }
}

/* Estilos para el botón de Contacto */
.banner-button {
 display: inline-block;
 margin-top: 30px;
 padding: 15px 35px;
 background: linear-gradient(45deg, #c08d41, #e0a95e); /* Dorado */
 color: #fff;
 text-decoration: none;
 border-radius: 50px;
 font-size: 18px;
 font-weight: 700;
 font-family: 'Montserrat', sans-serif;
 letter-spacing: 1px;
 text-transform: uppercase;
 box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
 transition: all 0.3s ease;
 position: relative;
 overflow: hidden;
 z-index: 1;
}

.banner-button:hover {
 transform: translateY(-5px) scale(1.02);
 box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
 background: linear-gradient(45deg, #e0a95e, #c08d41);
}

/* Animaciones de fondo (Formas Minimalistas/Futuristas) */
.banner-shapes {
 position: absolute;
 inset: 0;
 overflow: hidden;
 z-index: 0;
 pointer-events: none;
}

.shape {
 position: absolute;
 opacity: 0.6; /* Aumentado para resaltar más */
 filter: drop-shadow(0 0 5px rgba(192, 141, 65, 0.3)); /* Brillo sutil */
 will-change: transform;
 transition: opacity 0.3s ease;
}

/* Forma 1: Rombo delineado dorado */
.shape-1 {
 top: 15%;
 left: 8%;
 width: 120px;
 height: 120px;
 border: 2px solid var(--accent);
 transform: rotate(45deg);
 animation: floatShape1 8s ease-in-out infinite;
}

/* Forma 2: Hexágono sólido color vino/morado */
.shape-2 {
 bottom: 20%;
 right: 10%;
 width: 250px;
 height: 250px;
 background: linear-gradient(135deg, #431832, #6d0034);
 clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
 opacity: 0.15;
 animation: floatShape2 12s ease-in-out infinite;
 animation-delay: -5s;
}

/* Forma 3: Pequeño elemento rotatorio */
.shape-3 {
 top: 45%;
 right: 25%;
 width: 60px;
 height: 60px;
 border: 1px solid rgba(46, 16, 34, 0.15);
 transform: rotate(15deg);
 animation: floatRotate 14s linear infinite;
}

/* Forma 4: Círculo grande delineado (Abajo Izquierda) */
.shape-4 {
 bottom: 10%;
 left: 5%;
 width: 180px;
 height: 180px;
 border: 1px solid rgba(192, 141, 65, 0.2);
 border-radius: 50%;
 animation: floatShape1 10s ease-in-out infinite reverse;
}

/* Forma 5: Rombo sólido pequeño (Arriba Derecha) */
.shape-5 {
 top: 20%;
 right: 15%;
 width: 30px;
 height: 30px;
 background: var(--accent);
 opacity: 0.2;
 transform: rotate(45deg);
 animation: floatShape2 9s ease-in-out infinite;
 animation-delay: -2s;
}

/* Forma 6: Triángulo sutil (Arriba Centro-Izquierda) */
.shape-6 {
 top: 15%;
 left: 35%;
 width: 0;
 height: 0;
 border-left: 20px solid transparent;
 border-right: 20px solid transparent;
 border-bottom: 35px solid rgba(67, 24, 50, 0.15);
 animation: floatRotate 16s linear infinite reverse;
}

/* Forma 7: Signo más (+) (Abajo Centro) */
.shape-7 {
 bottom: 35%;
 left: 20%;
 width: 40px;
 height: 40px;
 background: linear-gradient(to bottom, transparent 45%, var(--accent) 45%, var(--accent) 55%, transparent 55%),
             linear-gradient(to right, transparent 45%, var(--accent) 45%, var(--accent) 55%, transparent 55%);
 opacity: 0.25;
 animation: floatRotate 12s linear infinite;
}

/* Forma 8: Anillo punteado grande (Esquina Superior Derecha) */
.shape-8 {
 top: -10%;
 right: -5%;
 width: 400px;
 height: 400px;
 border: 2px dashed rgba(67, 24, 50, 0.08);
 border-radius: 50%;
 animation: floatRotate 40s linear infinite;
}

/* Forma 9: Cuadrado rotado (Izquierda Centro) */
.shape-9 {
 top: 40%;
 left: -2%;
 width: 80px;
 height: 80px;
 border: 1px solid rgba(67, 24, 50, 0.1);
 transform: rotate(15deg);
 animation: floatShape2 10s ease-in-out infinite;
}

/* Forma 10: Octágono delineado (Derecha Abajo) */
.shape-10 {
 bottom: 15%;
 right: 5%;
 width: 100px;
 height: 100px;
 background: transparent;
 border: 1px solid var(--accent);
 opacity: 0.15;
 clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
 animation: floatRotate 15s linear infinite reverse;
}

/* Forma 11: Círculo pequeño sólido (Centro Arriba) */
.shape-11 {
 top: 12%;
 left: 55%;
 width: 18px;
 height: 18px;
 background: var(--accent);
 border-radius: 50%;
 opacity: 0.3;
 animation: floatShape1 7s ease-in-out infinite;
}

/* Forma 12: Línea decorativa (Abajo Derecha) */
.shape-12 {
 bottom: 40%;
 right: 25%;
 width: 120px;
 height: 4px;
 background: linear-gradient(90deg, transparent, rgba(67, 24, 50, 0.15), transparent);
 animation: floatShape2 8s ease-in-out infinite alternate;
}

/* --- NUEVAS FIGURAS (13-20) --- */

/* Forma 13: Cruz grande delgada */
.shape-13 {
 top: 60%;
 left: 10%;
 width: 60px;
 height: 60px;
 background: linear-gradient(to bottom, transparent 48%, var(--accent) 48%, var(--accent) 52%, transparent 52%),
             linear-gradient(to right, transparent 48%, var(--accent) 48%, var(--accent) 52%, transparent 52%);
 opacity: 0.4;
 animation: floatRotate 20s linear infinite;
}

/* Forma 14: Triángulo sólido pequeño */
.shape-14 {
 top: 85%;
 right: 35%;
 width: 0;
 height: 0;
 border-left: 15px solid transparent;
 border-right: 15px solid transparent;
 border-bottom: 25px solid #431832;
 opacity: 0.5;
 animation: floatShape1 12s ease-in-out infinite;
}

/* Forma 15: Círculo grande punteado */
.shape-15 {
 top: 15%;
 left: 75%;
 width: 140px;
 height: 140px;
 border: 2px dotted var(--accent);
 border-radius: 50%;
 opacity: 0.25;
 animation: floatRotate 35s linear infinite reverse;
}

/* Forma 16: Cuadrado sólido rotado */
.shape-16 {
 bottom: 10%;
 left: 45%;
 width: 40px;
 height: 40px;
 background: rgba(67, 24, 50, 0.2);
 transform: rotate(30deg);
 animation: floatShape2 15s ease-in-out infinite;
}

/* Forma 17: Puntos dispersos (simulado con box-shadow) */
.shape-17 {
 top: 30%;
 right: 8%;
 width: 6px;
 height: 6px;
 background: var(--accent);
 border-radius: 50%;
 box-shadow: 20px 20px 0 var(--accent), -20px 30px 0 var(--accent), 10px -20px 0 var(--accent);
 opacity: 0.4;
 animation: floatShape1 18s ease-in-out infinite;
}

/* Forma 18: Hexágono grande delineado */
.shape-18 {
 bottom: 40%;
 left: 15%;
 width: 160px;
 height: 160px;
 background: transparent;
 border: 2px solid rgba(67, 24, 50, 0.1);
 clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
 animation: floatRotate 25s linear infinite;
}

/* Forma 19: Línea vertical larga */
.shape-19 {
 top: 20%;
 left: 5%;
 width: 2px;
 height: 150px;
 background: linear-gradient(to bottom, transparent, var(--accent), transparent);
 opacity: 0.5;
 animation: floatShape2 10s ease-in-out infinite alternate;
}

/* Forma 20: Anillo pequeño sólido */
.shape-20 {
 top: 55%;
 right: 20%;
 width: 25px;
 height: 25px;
 border: 3px solid #431832;
 border-radius: 50%;
 opacity: 0.3;
 animation: floatShape1 9s ease-in-out infinite reverse;
}

/* Actualización de Keyframes para incluir variables CSS (--x, --y) para interacción */
@keyframes floatShape1 {
 0% { transform: translate(var(--x, 0px), var(--y, 0px)) rotate(45deg) translate(-20px, 0); }
 50% { transform: translate(var(--x, 0px), var(--y, 0px)) rotate(45deg) translate(20px, -10px); }
 100% { transform: translate(var(--x, 0px), var(--y, 0px)) rotate(45deg) translate(-20px, 0); }
}

@keyframes floatShape2 {
 0% { transform: translate(var(--x, 0px), var(--y, 0px)) translate(-30px, 0); }
 50% { transform: translate(var(--x, 0px), var(--y, 0px)) translate(30px, 15px); }
 100% { transform: translate(var(--x, 0px), var(--y, 0px)) translate(-30px, 0); }
}

@keyframes floatRotate {
 0% { transform: translate(var(--x, 0px), var(--y, 0px)) rotate(0deg) translate(-20px, 0); }
 50% { transform: translate(var(--x, 0px), var(--y, 0px)) rotate(180deg) translate(20px, -20px); }
 100% { transform: translate(var(--x, 0px), var(--y, 0px)) rotate(360deg) translate(-20px, 0); }
}
